<script type="text/javascript">
function confirm_import() {
  var answer = confirm("<?php _e('All of your current WP Greet Box options will be overwritten by the imported value.  Are you sure you want to overwrite all settings?', $this->p->name); ?>");
  if(answer)
    return true;
  else
    return false;
}
</script>
<?php
  echo(
    '<h2>'.__('Export', $this->p->name).'</h2>'.
    '<form method="post">'.
      '<fieldset class="wpgb_fieldset wpgb_fieldset_alt">'.
        '<p>'.__('This functionality will dump your entire WP Greet Box options into a file.', $this->p->name).'</p>'.
        '<p class="submit">'.
        '<input type="submit" id="wpgb_options_export" name="wpgb_options_export" value="'.__('Export Options', $this->p->name).' &#187;" />'.
        '</p>'.
      '</fieldset>'.
    '</form>'.
    '<h2>'.__('Import', $this->p->name).'</h2>'.
    '<form method="post" enctype="multipart/form-data">'
  );
  wp_nonce_field($this->p->name);
  echo(
      '<fieldset class="wpgb_fieldset wpgb_fieldset_alt">'.
        '<p>'.__('This functionality will restore your entire WP Greet Box options from a file.', $this->p->name).'<br/><strong>'.__('Make sure you\'ve done an export and backup the exported file before you try this!', $this->p->name).'</strong></p>'.
        '<input type="file" id="wpgb_options_import_file" name="wpgb_options_import_file" size="40" /><br/>'
  );
  wp_nonce_field($this->p->name);
  echo(
        '<p class="submit">'.
        '<input type="submit" id="wpgb_options_import" name="wpgb_options_import" value="'.__('Import Options', $this->p->name).' &#187;" onclick="return confirm_import()" />'.
        '</p>'.
      '</fieldset>'.
    '</form>'
  );
